package st.business.tepth.business.user.busnumber.finishholder.repair;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import st.business.tepth.R;
import st.business.tepth.business.bean.CompleteInfoBean;

/**
 * @author zhangyu
 * @date 2019/3/26
 */
public class FinishRepairAdapter extends BaseQuickAdapter<CompleteInfoBean.Info,
        BaseViewHolder> {

    public FinishRepairAdapter(int layoutResId, @Nullable List<CompleteInfoBean.Info> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CompleteInfoBean.Info info) {
        helper.setText(R.id.cb_classification, info.getVehicle_series_name());
        helper.setText(R.id.tv_trouble, info.getPhenomenon_name());
        helper.setText(R.id.tv_warn_record, "无");
        helper.setText(R.id.tv_work_content, info.getWork_content());
    }
}
